package com.xinke.module.system.model.vo.mail;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.xinke.component.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.xinke.component.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 邮件日志分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MailLogPageReqVO extends PageParam {

    @Schema(description = "用户编号", example = "28229")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "接收邮箱地址")
    private String receiveMailAddress;

    @Schema(description = "邮箱账号编号", example = "360")
    private Long mailAcctId;

    @Schema(description = "发送邮箱地址")
    private String sendMailAddress;

    @Schema(description = "模板编号", example = "16429")
    private Long templateId;

    @Schema(description = "模板编码")
    private String templateCode;

    @Schema(description = "模版发送人名称", example = "李四")
    private String templateNickName;

    @Schema(description = "邮件标题")
    private String templateTitle;

    @Schema(description = "邮件内容")
    private String templateContent;

    @Schema(description = "邮件参数")
    private String templateParams;

    @Schema(description = "发送状态", example = "1")
    private Integer sendStatus;

    @Schema(description = "发送时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] sendTime;

    @Schema(description = "发送返回的消息 ID", example = "29517")
    private String sendMessageId;

    @Schema(description = "发送异常")
    private String sendException;

}